package com.yanqu.road.entity.activity.signindraw.cross;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_c_sign_in_draw_item", desc = "大奖抽取情况")
public class CrossSignInDrawItemData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "奖励id")
    private int rewardId;

    @FieldTypeAnnotation(desc = "已出奖个数")
    private int getNum;

    @FieldTypeAnnotation(desc = "抽中的uid")
    private List<String> uidList = new ArrayList<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getRewardId() {
        return rewardId;
    }

    public void setRewardId(int rewardId) {
        if(this.rewardId != rewardId) {
            this.rewardId = rewardId;
            setUpdateOption();
        }
    }

    public int getGetNum() {
        return getNum;
    }

    public void setGetNum(int getNum) {
        if(this.getNum != getNum) {
            this.getNum = getNum;
            setUpdateOption();
        }
    }

    public List<String> getUidList() {
        return uidList;
    }

    public void setUidList(List<String> uidList) {
        this.uidList = uidList;
        setUpdateOption();
    }
}
